<jsp:include page="header.jsp" />
<%@page import="java.util.*,ftn.dto.*"%>
<jsp:useBean id="odseci" class="java.util.ArrayList" scope="request" />
<title>Odseci</title>
<LINK rel="stylesheet" type="text/css" href="/ftn/css/style.css">
<LINK rel="stylesheet" type="text/css" href="/ftn/css/theme.css">
</head>

<body>
	<table width="1024" border="0">
    	<tr align="left"> 
      		<td width="260" rowspan="3" valign="top"> 
          		<div id="box_240"> 
		        <div id="jobs_green"></div>
        		<div id="content"> 		
	          		<span class="homeLink"> 
						<a href="../control/PrepareCreateOdsekController">Dodaj odsek</a><br />
			  		</span>	
	            </div>
      		    <div id="footer"></div>
          		</div>

				<jsp:include page="menu.jsp"/>
          	</td>
          	
			<!-- end of menu part -->                		
			<td width="740" height="21" valign="top">       
				<div id="box_460">
				<div id="inbox_green"></div>
				<div id="content">       
			        <span class="homeLink">
			        	<table border="0" cellpadding="1" cellspacing="1" width="100%" >
							<tr valign="top" class="stats_header">
								<td width="10" class="stats_header">R.b.</td>
								<td width="10" class="stats_header">ID</td>
								<td width="50" class="stats_header">Naziv</td>
							</tr>
<%
						int stats_row = 2;
						int rowCount = 0;
						OdsekDTO odsek;
						java.util.Iterator it = odseci.iterator();
						int i = 0;

						while (it.hasNext()) {
							odsek = (OdsekDTO) it.next();
							rowCount++;
							if (stats_row == 2)
								stats_row = 1;
							else
								stats_row = 2;

%>
							<tr valign="top" class="stats_row_<%= stats_row %>">
								<td align="left" class="stats_row_<%= stats_row %>"><%= (i+1) %>.</td>
								<td align="left" class="stats_row_<%= stats_row %>"><a href="../control/PrepareEditOdsekController?id=<%=odsek.getIdOdseka()%>&naziv=<%= odsek.getNaziv()%>"> <% out.print( odsek.getIdOdseka()); %></a></td>
								<td align="left" class="stats_row_<%= stats_row %>"><a href="../control/PrepareEditOdsekController?id=<%=odsek.getIdOdseka()%>&naziv=<%= odsek.getNaziv()%>"> <% out.print( odsek.getNaziv()); %></a></td>
							</tr>
<%				
							i++;
						}
%>
       	       			</table>
				</div>
				<div id="footer"></div>	
				</div>
			</td>
		</tr>
	</table>

</body>
</html>
